home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
12511500
/
var1411.dms
/
var1411.adf
/
docs
/
Hunk.doc
< prev
next >
Wrap
Text File
|
1993-07-28
|
1KB
|
28 lines
Hunk is a utility for dumping the AmigaDos file structure for executable and
linkable objects.
USAGE: Hunk [-s] <executable/object file>
The -s option if set causes any symbols in symbol table hunks to be
displayed on screen.
e.g.
Hunk c/LECasm
tells you all about the hunk structure of the program LECasm.
The Program was just a quick utility I wrote to test the linkable output
of the assembler, and as such needs a little polishing up. Such as the
function 'Write' should be rewritten so that text is output a line at a time,
which will increase the speed the text is output at.
Hunk works by randomly accessing the file for which you have requested its
hunk. This means that very large files without symbol tables are done quickly
with as few disk accesses as possible. Symbol tables are handled rather
slowly, since the file is read in about a long word at a time, which is
inefficient. A better solution would be to allocate some memory for the
symbol table, parse it, and then free that memory.